@echo off

echo clean start...

rem enter the root directory and set the basedir.
cd /d "%~dp0.."
SET "basedir=%cd%"

echo cleaning up the node_modules folder...
if exist "%basedir%\node_modules" rmdir /s /q "%basedir%\node_modules" || goto :error

echo cleaning up the dist folder...
if exist "%basedir%\dist" rmdir /s /q "%basedir%\dist" || goto :error

echo clean successful.
exit 0

:error
echo clean failed.
exit 1
